how to create registration form in python